package com.acdc.dlt698.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import com.acdc.dlt698.constants.FunctionCode;
import com.acdc.dlt698.domain.ControlDomain;

/**
 * ConnectRequest类型的帧
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ConnectRequestFrame extends Frame {
    private ConnectRequestData connectRequestData;

    public ConnectRequestFrame() {
        ControlDomain controlDomain = new ControlDomain();
        controlDomain.setFunCode(FunctionCode.THREE);
        controlDomain.setSc(0x00);
        controlDomain.setFrameFlg(0x00);
        controlDomain.setPrm(0x01);
        controlDomain.setDir(0x00);
        this.setControlDomain(controlDomain);
    }

}
